package msc.ai.crypto.jade.security.keymanager;

import jade.core.AID;
import jade.util.leap.Serializable;

import java.security.KeyPair;
import java.security.PublicKey;

/**
 * 
 * @author Viraj Dayarathne
 *<p>
 *A Class to hold public key retrieved from Key Manager Agent (KDC)
 *</P>
 */
public class AgentPublicKeyDetails implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2494172032302718098L;
	
	private KeyPair myKeyPair;
	private PublicKey keyMgrPublicKey;
	private AID keyMgrAID;
	private String keyMgrName;
	
	public AgentPublicKeyDetails(KeyPair myKeyPair, PublicKey keyMgrPublicKey, AID mgrAID, String mgrName)
	{
		this.myKeyPair = myKeyPair;
		this.keyMgrPublicKey = keyMgrPublicKey;
		this.keyMgrAID = mgrAID;
		this.keyMgrName = mgrName;
	}

	public KeyPair getMyKeyPair()
	{
		return this.myKeyPair;
	}

	public PublicKey getKeyMgrPublicKey()
	{
		return this.keyMgrPublicKey;
	}

	public AID getKeyMgrAID()
	{
		return this.keyMgrAID;
	}
	
	public String getKeyMgrName()
	{
		return this.keyMgrName;
	}

	
	
	
	
}
